import os
from App import create_app
app, soc = create_app()
if __name__ == '__main__':
    # 启动服务器
    port = int(os.environ.get('PORT', 5000))
    host = os.environ.get('HOST', '0.0.0.0')
    soc.run(app, port=port, host=host, debug=False)
